<template>
  <div class="background">
    <van-nav-bar title="用户中心" />
    <div class="upper">
      <van-image
        width="1.5rem"
        height="1.5rem"
        round
        src="https://img01.yzcdn.cn/vant/cat.jpeg"
      />
      <span
        >李先靖
        <van-button
          color="linear-gradient(to right, #ff6034, #ee0a24)"
          size="mini"
          round
          >点击登录</van-button
        >
      </span>

      <van-button round size="mini" @click="ClickLogin()">点击登录</van-button>
    </div>
    <div class="user"></div>
    <div class="favorite"></div>
  </div>
</template>

<script>
export default {
  name: "UserCenter",
  data() {
    return {};
  },
  methods: {
    ClickLogin() {
      console.log(this);
      this.$router.push({
        path: "/login",
      });
    },
  },
};
</script>

<style lang='less'scoped>
.background {
  height: 95vh;
  background-color: rgba(246, 241, 241, 0.781);
  .upper {
    span {
      padding-top: 10px;
      font-size: 10px;
    }
    padding-top: 50px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: linear-gradient(to bottom, #ee0a2568, #ee0a2500);
    // background: #ee0a2568;
  }
  .user {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: white;
    height: 300px;
    border-radius: 20px;
    margin: -100px 20px 0px 20px;
    box-shadow: 0 0 10px rgba(172, 167, 167, 0.387);
  }
  .favorite {
    background-color: white;
    height: 300px;
    border-radius: 20px;
    top: 20px;
    padding-top: 20px;
    margin: 20px 20px 0px 20px;
    box-shadow: 0 0 10px rgba(172, 167, 167, 0.387);
  }
}
</style>
